package cn.tedu._05weibo.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @Author Justin Parker
 * @Date 2024/8/12 0012 14:49
 * @Version 1.0
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    //所有的实例都在最上面
    USERNAME_ERROR(1000,"用户名错误"),
    PASSWORD_ERROR(1001,"密码错误"),
    USERNAME_EXIST(1002,"用户名已存在"),
    NOT_LOGIN(1003,"未登录"),
    OPERATION_SUCCESS(2000,"操作成功"),
    OPERATION_FAIL(2001,"操作失败"),
    THROWABLE_ERROR(2002,"系统异常"),
    VALIDATED_ERROR(3000,"参数校验失败");
    //状态码、提示消息
    private Integer state;
    private String message;

}
